<?php class AdminMenuModel {

    public  $menu = array(
        'aso' => array(
            'aso' => array(
                'title' => 'task任务管理',
                'href' => '/manage/aso/task',
                'childs' => array(
                    'recomapp' => array(
                        'title' => '任务列表',
                        'href' => '/manage/aso/task/',
                    ),
                    'exportidfa' => array(
                        'title' => '导出IDFA',
                        'href' => '/manage/aso/exportidfa/',
                    ),
                    'jointapi' => array(
                        'title' => '对接商家接口',
                        'href' => '/manage/aso/jointapi/',
                    ),
                    'jointseller' => array(
                        'title' => '对接商家配置',
                        'href' => '/manage/aso/jointseller/',
                    ),
                    'outsidesearch' => array(
                        'title' => '外放IDFA查询',
                        'href' => '/manage/aso/outsidesearch/',
                    ),
                    'inputoutdata' => array(
                        'title' => '导入外放IDFA',
                        'href' => '/manage/aso/inputoutdata/',
                    ),
                    'channel' => array(
                        'title' => '外放渠道管理',
                        'href' => '/manage/aso/channel/',
                    ),
                    'outtask' => array(
                        'title' => '外放任务列表',
                        'href' => '/manage/aso/outtask/',
                    )
                )
            ),
        ),

        'degree' => array(
            'degree' => array(
                'title' => '深度(高额)任务管理',
                'href' => '/manage/degree/degree',
                'childs' => array(
                    'degree' => array(
                        'title' => '深度(高额)任务列表',
                        'href' => '/manage/degree/degree/',
                    ),
                    'degreeapplylist' => array(
                        'title' => '深度(高额)任务报名列表',
                        'href' => '/manage/degree/degreeapplylist/',
                    ),
                )
            ),
        ),

        'user' => array(
            'user' => array(
                'title' => '用户管理',
                'href' => '/manage/user/index',
                'childs' => array(
                    'index' => array(
                        'title' => 'IOS用户列表',
                        'href' => '/manage/user/index/',
                    ),
                    'applylist' => array(
                        'title' => '任务参与记录',
                        'href' => '/manage/user/applylist/',
                    ),
                    'underwaytask' => array(
                        'title' => '进行中的任务',
                        'href' => '/manage/user/underwaytask/',
                    ),
                    'exchangelist' => array(
                        'title' => '用户收支记录',
                        'href' => '/manage/user/exchangelist/',
                    ),
                    'invitelist' => array(
                        'title' => '邀请列表',
                        'href' => '/manage/user/invitelist/',
                    ),
                    'waitcheckorder' => array(
                        'title' => '待审核微信提现',
                        'href' => '/manage/user/waitcheckorder/',
                    ),
                    'wechatavatar' => array(
                        'title' => '微信头像列表',
                        'href' => '/manage/user/wechatavatar/',
                    ),
                    'whitelist' => array(
                        'title' => '审核白名单',
                        'href' => '/manage/user/whitelist/',
                    ),
                    'waitcheckalipay' => array(
                        'title' => '待审核支付宝提现',
                        'href' => '/manage/user/waitcheckalipay/',
                    ),
                    'identifylist' => array(
                        'title' => '实名认证列表',
                        'href' => '/manage/user/identifylist/',
                    ),
                    'mobilesearch' => array(
                        'title' => '徒子徒孙页面',
                        'href' => '/manage/user/mobilesearch/',
                    ),
                    'mobilecode' => array(
                        'title' => '验证码查询',
                        'href' => '/manage/user/mobilecode/',
                    ),
                    'problem' => array(
                        'title' => '问题用户列表',
                        'href' => '/manage/user/problem/',
                    )
                )
            ),
        ),
        'stat' => array(
            'stat' => array(
                'title' => '数据统计',
                'href' => '/manage/stat/taskfee',
                'childs' => array(
                    'taskfee' => array(
                        'title' => '任务费用汇总统计',
                        'href' => '/manage/stat/taskfee/',
                    ),
                    'taskfeeperday' => array(
                        'title' => '单任务费用统计',
                        'href' => '/manage/stat/taskfeeperday/',
                    ),
//                    'outputtotaldata' => array(
//                        'title' => '导出结算总数据',
//                        'href' => '/manage/stat/outputtotaldata/',
//                    ),
                    'elchee' => array(
                        'title' => '大使数据统计',
                        'href' => '/manage/stat/elchee/',
                    ),
                    'outside' => array(
                        'title' => '外放统计',
                        'href' => '/manage/stat/outstat/',
                    ),
                    'link' => array(
                        'title' => '统计链接列表',
                        'href' => '/manage/stat/link/',
                    ),
                    'remaintask' => array(
                        'title' => '留存任务统计',
                        'href' => '/manage/stat/remaintask/',
                    )
                )
            ),
        ),

        'ss' => array(
            'ss' => array(
                'title' => '自助平台管理',
                'href' => '/manage/ss/userlist/',
                'childs' => array(
                    'userlist' => array(
                        'title' => '用户列表',
                        'href' => '/manage/ss/userlist/',
                    ),
                    'waitchecktask' => array(
                        'title' => '待审核任务列表',
                        'href' => '/manage/ss/waitchecktask/',
                    ),
                    'rechange' => array(
                        'title' => '待审核充值列表',
                        'href' => '/manage/ss/rechange/',
                    ),
                    'saleprogress' => array(
                        'title' => '商务KPI进度',
                        'href' => '/manage/ss/saleprogress/',
                    ),
                ),
            ),
        ),

        'tool' => array(
            'tool' => array(
                'title' => '工具',
                'href' => '/manage/tool/advlist/',
                'childs' => array(
                    'advlist' => array(
                        'title' => '广告列表',
                        'href' => '/manage/tool/advlist/',
                    ),
                    'push' => array(
                        'title' => '推送',
                        'href' => '/manage/tool/push/',
                    ),
                    'notification' => array(
                        'title' => '增加通知',
                        'href' => '/manage/tool/notification/',
                    ),
                    'addPackage' => array(
                        'title' => '上传包',
                        'href' => '/manage/tool/addPackage/',
                    ),
                ),
            ),
        ),

        'operate' => array(
            'operate' => array(
                'title' => '后台用户管理',
                'href' => '/manage/operate/index/',
                'childs' => array(
                    'index' => array(
                        'title' => '用户列表',
                        'href' => '/manage/operate/index/',
                    ),
                    'create' => array(
                        'title' => '添加用户',
                        'href' => '/manage/operate/create/',
                    )
                ),
            ),
        ),

    );

    public function getMenu($contr){
        if(isset($this->menu[$contr])) {
            $ret = $this->menu[$contr];
        } else {
            $ret = array();
        }
        return $ret;
    }

}